<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>10_数组的增-末尾增</title>
    </head>
    <body>
        <script>
            //         0 1 2 3 4  5
            var arr = [1,2,3,4,5];

            arr[arr.length] = 6;

            arr[arr.length] = 7;

            console.log(arr);
        </script>
    </body>
</html>